<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">
	<div class="row">
		<div class="col-sm-2">
			<input type="text" class="form-control" placeholder="产品主名称" ng-model="searchform.product_name" ng-keyup="myKeyup($event)">
		</div>
		<div class="col-sm-2">
			<input type="text" class="form-control" placeholder="产品编号" ng-model="searchform.line_product_id" ng-keyup="myKeyup($event)">
        </div>
        <div class="col-sm-2">
			<input type="text" class="form-control" placeholder="供应商名称" ng-model="searchform.company_name" ng-keyup="myKeyup($event)">
		</div>
		<div class="col-sm-2 ">
			<ui-select ng-model="searchform.product_type" theme="bootstrap" ng-keyup="myKeyup($event)">
				<ui-select-match placeholder="产品类型">
					{{$select.selected.name}}
				</ui-select-match>
				<ui-select-choices repeat="item.value as item in producttypelist | filter: $select.search">
					<span ng-bind-html="item.name | highlight: $select.search"></span>
				</ui-select-choices>
			</ui-select>
		</div>
		<div class="col-sm-offset-2 col-sm-2">
			<button type="submit" class="btn btn-info search  btn-block" ng-click="load()">立即搜索</button>
		</div>
	</div>
</div>
</div>
</div>
<!-- searchArea -->
			
<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
					<th class="col-md-4 text-center">产品</th>
                    <th class="col-md-1 text-center">产品类型</th>
					<th class="col-md-1 text-center">供应商名称</th>
					<th class="col-md-1 text-center">出发城市</th>
                    <th class="col-md-2 text-center">目的城市</th>
                    <th class="col-md-1 text-center">平台状态</th>
                    <th class="col-md-1 text-center">商客状态</th>
					<th class="col-md-1 text-center">操作</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="obj in objs">
					<td class="">
						产品主名称：{{obj.product_name}} <br>产品副名称: {{obj.product_sub_name}} <br>产品编号：{{obj.line_product_id}}
					</td>
					<td class="text-center">
						<br/> {{obj.product_type}} 
                    </td>
                    <td class="text-center"><br>{{obj.company_name}}</td>
                    <td class="text-center"><br>{{obj.start_city_arr}}</td>
					<td class="text-center"><br>{{obj.end_city}}</td>
					<td class="text-center"><br>
						<p ng-show="obj.sale_state == '0'">草稿</p>
                        <p ng-show="obj.sale_state == '1'">已上架</p>
						<p ng-show="obj.sale_state == '2'">已下架</p>
                    </td>
                    <td class="text-center"><br>
						<p ng-show="obj.sk_state == '0'">已上架</p>
                        <p ng-show="obj.sk_state == '1'">已下架</p>
					</td>
					<td class="text-center">
                        <br>
                        <a  ng-show="obj.sk_state == '0'" ng-click="stop(obj)" class="btn btn-primary btn-xs">下架</a>
						<a  ng-show="obj.sk_state == '1'" ng-click="start(obj)" class="btn btn-danger btn-xs">上架</a><br>
						<a  ng-show="obj.sale_state == '1'" ng-click="skset($index)" class="btn btn-success btn-xs" >商客专用设置</a>
					</td>
				</tr>
			</tbody>
		</table>

		<div class="text-right">
			<pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
				first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
				class="m-t-none m-b">
			</pagination>
		</div>

	</div>
</div>
</div>